package com.mk.cloud.common.domain;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.annotatoin.SqlStatementType;
import org.beetl.sql.core.annotatoin.Table;
import org.beetl.sql.core.mapper.BaseMapper;

import java.io.Serializable;
import java.util.List;

/*
* 
* gen by beetlsql 2017-10-23
*/
@Table(name="cp_role_user")
public class CpRoleUser   implements Serializable{
	//角色ID
	private String roleid ;
	private String userid ;
	
	public CpRoleUser() {
	}
	
	public String getRoleid(){
		return  roleid;
	}
	public void setRoleid(String roleid ){
		this.roleid = roleid;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public interface Mapper extends BaseMapper<CpRoleUser> {

		@SqlStatement(type=SqlStatementType.UPDATE)
		int saveUserRoles(@Param("roleids") List<String> roleids,@Param("userid") String userid);

		int deleteUserRoles(@Param("userid") String userid);
	}

}
